#include <string>
#include <iostream>

using namespace std;

int f(const string& s)
{
	cout << "in const" << endl;
	return s.length();
}

int f(string& s)
{
	cout << "in non-const" << endl;
	return s.length();
}

int main()
{
    string s="ssssss";
    f(s);
    f("sssssss");
	return 0;
}
